Skip to content

Refactor/filter strategies to simplify requestfilter decision tree#46

Draft
chrisingenhaag wants to merge 12 commits intomainfrom
refactor/filterStrategies
Draft

Refactor/filter strategies to simplify requestfilter decision tree#46
chrisingenhaag wants to merge 12 commits intomainfrom
refactor/filterStrategies

Conversation

@chrisingenhaag
Copy link
Copy Markdown
Member

@chrisingenhaag chrisingenhaag commented Sep 29, 2025

RequestFilter is way to complex in decision of which auth headers etc are set downstream. This is an idea of possibly realize this. This is WIP and not working.

  • PR is lacking an order of Strategies and always applies just one. There is a possibility that multiple strategies have to be applied.
  • additionally a request processing object is introduced across the strategies. This improves the problem of manipulating the jumperconfig object during runtime which is hard to handle as it is static object as well as a state object. Negative point is here that this would be anti pattern against spring-cloud-gateway filter usage.

Tracing correct spans
Correct maven wrapper (not used atm) for future usage
Pipeline use java 21 image for docker build
switch to logstash format
rename gateway spans contextualnames to match current naming
trailing slash handling + spotless apply
extended ObservationFilter with tests
correct RequestFilter handling of mutating + tests
tests covering query param hiding
test: add docker-compose file for local tracing testing
refactor: not recreating objectmapper again and again
minor cleanup and renaming + remove duplicat webflux starter dependency
Add redis to docker-compose.yml for local test
Make lazy redis pubsub init work with context propagation
Revert key loading just once
Switch to integrated structured logging
Ignore x-forwarded-* headers for routing see github ref
Enforce statelessness
tardis-traceid spamming metrics
switch to hardened community jre image + compose description
tracing adjustments reg propagation and baggage
configurable key location
Dockerfile.multi-stage with new community jre image
add blockhound to tests to fail on blocking calls

Refs: DHEI-17014 spring-cloud/spring-cloud-gateway#3677
replace everytime regex compile and match operations with simple string operations
add precompiled regex patterns for query regex patterns in TracingConfiguration
proper logging for possible dns resolution errors for oauth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant